<?php /* Smarty version 2.6.18, created on 2010-03-09 17:06:04
         compiled from stafftraininglist.tpl */ ?>
<div id="blanket" style="display:none;"></div>
<div id="editSkill" style="background-color:#fff;width:500px;z-index: 1002;display:none;position: absolute;">
</div>
<div id="editStaffTraining" style="background-color:#fff;width:500px;z-index: 1002;display:none;position: absolute;">
</div>
<script>	
	var ds = new ekimo_drag_region("content","editSkill");
	var dt = new ekimo_drag_region("content","editStaffTraining");
</script>
<div id="main_content">
    	<h1>Staff Training</h1>
        
			<div class="blue">
        	    <form action="" id="filterForm" >
        	        <table>
	       	            <tr>
        					<td nowrap><select name="user[filter]" onchange="getStaffView(this.value);">
        						<option value="1">View By Names</option>
        						<option value="2">View By Staff No.</option>
        					</select>:</td>&nbsp;&nbsp;
        					<td id=staffview>
        						<select name="staffId" onchange="doajaxAction('/account/getStaffTraining/reload/1',1,'result',document.getElementById('filterForm'))">
        							<option value="">--- Select Staff ---</option>
        							<?php $_from = $this->_tpl_vars['staffs']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['staff']):
?>
        								<option value="<?php echo $this->_tpl_vars['staff']['staff_id']; ?>
"><?php echo $this->_tpl_vars['staff']['staff_display']; ?>
</option>
        							<?php endforeach; endif; unset($_from); ?>				
        						</select>			
        					</td>
        	            </tr>
        	        </table>   
        		</form>
        	</div>
       
            <div id="result">
				<!-- <div>
					<table border="0" width="100%">
					<tr bgcolor="#cccccc">
					</tr>
					<?php $_from = $this->_tpl_vars['inspections']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['inspection']):
?>
					<tr>
						<?php if ($this->_tpl_vars['inspection']['tank_name'] <> ''): ?>
							<td align="center"><a href="javascript:void(0);" onclick="editTankInspection(<?php echo $this->_tpl_vars['inspection']['tank_inspection_id']; ?>
);">Show</a></td>
						<?php endif; ?>
						<td><?php echo $this->_tpl_vars['inspection']['tank_name']; ?>
</td>
						<td align="right"><?php echo $this->_tpl_vars['inspection']['date_inspected']; ?>
</td>
						<td><?php echo $this->_tpl_vars['inspection']['result']; ?>
</td>
						<td><?php echo $this->_tpl_vars['inspection']['remarks']; ?>
</td>
						<td align="right"><?php echo $this->_tpl_vars['inspection']['date_next_inspection']; ?>
</td>
					</tr>
					<?php endforeach; endif; unset($_from); ?>
					</table>
				</div> -->
            </div><!-- results -->
            
</div>
<script language="javascript">
	<?php echo '
		function getStaffView(filter){
			doajaxAction("/account/getStaffView/view_type/"+filter,0,"staffview");
			document.getElementById(\'result\').innerHTML=\'\';
		}
	'; ?>

</script>